package cn.yujiago.miaosha.dto;

import cn.yujiago.miaosha.component.CustomDoubleSerialize;
import cn.yujiago.miaosha.entity.Goods;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class GoodsDTO extends Goods implements Serializable {

    @JsonSerialize(using = CustomDoubleSerialize.class)
    private Double miaoshaPrice;
    private Integer stockCount;
    private Date startDate;
    private Date endDate;

}
